package cn.cdu.doctor.entity;

import cn.cdu.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;


@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "doctor")
@TableName("doctor")
@ApiModel(value = "医生")
public class Doctor extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医生姓名")
    private String doctorName;

    @ApiModelProperty(value = "医生年龄")
    private int age;

    @ApiModelProperty(value = "学历学位")
    private String education;

    @ApiModelProperty(value = "开始工作时间")
    private String workDate;

    @ApiModelProperty(value = "毕业学校")
    private String university;

    @ApiModelProperty(value = "职称")
    private String postLevel;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "所属科室ID")
    private String subjectId;

    @ApiModelProperty(value = "所属科室")
    private String subjectName;

    @ApiModelProperty(value = "医生介绍")
    private String about;

    @ApiModelProperty(value = "医生照片")
    private String photo;

    @ApiModelProperty(value = "挂号费用")
    private BigDecimal orderMoney;

    @Transient
    @TableField(exist=false)
    @ApiModelProperty(value = "是否当日")
    private String noeDate;
}